﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Album.aspx.cs" Inherits="RioStudio.Website.View.Gallery.Album" %>

<asp:Content ID="Content0" ContentPlaceHolderID="TitleMain" runat="server">
    Album ảnh cưới
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="rio-album table-row">
        <div class="center table-cell">
            <div class="title">
                <div class="rio-title">
                    Gallery
                </div>
                <div class="rio-subtitle">
                    Wedding albums
                </div>
            </div>
            <div class="content">
                <% if (HttpContext.Current.User.Identity.IsAuthenticated)
                   {%>
                <asp:HyperLink ID="lnkAddNew" runat="server" Text="Thêm mới" CssClass="rio-link" NavigateUrl="/Admin/Gallery/Add" />
                <%} %>
                <asp:DataList ID="lstAlbum" RepeatColumns="3" RepeatDirection="Horizontal" runat="server" Width="100%">
                    <ItemTemplate>
                        <div class="image">
                            <% if (HttpContext.Current.User.Identity.IsAuthenticated)
                               {%>
                            <div>
                                <a href='/Admin/Gallery/Edit/<%# Eval("GalleryID") %>' class="rio-link">Chỉnh sửa</a>
                            </div>
                            <%} %>
                            <div class="avatar">
                                <a href='/Album/<%# Eval("Slug") %>'>
                                    <img class="jail" height="200" width="300" src='<%# ResolveUrl(Eval("GalleryAvatar").ToString()) %>' alt='<%# Eval("GalleryName") %>' />
                                </a>
                            </div>
                            <div class="title">
                                <div class="rio-link">
                                    <%# Eval("GalleryName") %></div>
                                <div class="rio-subtitle">
                                    <%# Eval("GalleryPlace") %></div>
                            </div>
                            <div style="clear: both">
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </div>
        </div>
    </div>
</asp:Content>
